#10.5.3
#生成可达矩阵
import _00GraphFuc as gf

m,n=6,10
[V,E]=gf.creategraph(m,n)
A=gf.graph2array(V,E)
R=gf.reachabilityarray(A,m)
gf.drawgraph(E)
print("V,E",V,E)
print("A",A)
print("R",R)